class Dojo < ActiveRecord::Base
  include Drag
  
  belongs_to :doer, :class_name => 'Friend', :foreign_key => 'doer_id'
#  belongs_to :joer, :class_name => 'Friend', :foreign_key => 'joer_id'

  def content_html
    RedCloth.new(content).to_html(:textile)
  end
    
#  validates_length_of :name, :maximum => 255, :allow_nil => false
#  validates_format_of :name, :with => Format::STRING
    
end
